﻿////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// <copyright>Copyright 2008-2011 Andreas Huber Doenni</copyright>
// Distributed under the GNU General Public License version 2 (GPLv2).
// See accompanying file License.txt or copy at http://phuse.codeplex.com/license.
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

namespace Phuse.Net.Nntp
{
    using System.IO;

    /// <summary>Represents the response to a <see cref="ListNewsgroupsCommand"/>.</summary>
    /// <threadsafety static="true" instance="false"/>
    public sealed class ListNewsgroupsResponse : MultilineResponse<ListNewsgroupsResponse, GroupInfo, string, string>
    {
        internal ListNewsgroupsResponse(Stream subsequentLines) : base(subsequentLines)
        {
        }

        ////////////////////////////////////////////////////////////////////////////////////////////////////////////////

        /// <summary>See <see cref="MultilineResponseBase{T, U, V, W}.CreateResponseLine(V, W)"/>.</summary>
        protected sealed override GroupInfo CreateResponseLine(string p1, string p2)
        {
            return new GroupInfo(p1, p2);
        }
    }
}
